package com.ihc.android.datasource;

import com.ihc.android.utilities.Constants;

public class Quiz {

	private long id;
	private String description;
	private int status;
	private Device server;
	
	public Quiz() {
		this(0);
	}
	
	public Quiz(long id) {
		this(id, "", 0, null);
	}
	
	public Quiz(String description, int status) {
		this(0, description, status, null);
	}
	
	public Quiz(long id, String description, int status, Device server) {
		this.id = id;
		this.description = description;
		this.status = status;
		this.server = server;
	}
	
	public long getId() {
		return id;
	}
	
	public void setId(long id) {
		this.id = id;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public Integer getStatus() {
		return status;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Device getServer() {
		return server;
	}
	
	public void setServer(Device server) {
		this.server = server;
	}
	
	@Override
	public String toString() {
		return this.description;
	}
	
	public String toMsgBluetooth() {
		return Long.toString(this.id) + Constants.separator + this.getDescription();
	}
}
